package entity;


public class Emp {
    private Integer eno;
    private String ename;
    private String esex;
    private Double salary;
    private Address addr;

    public Emp() {
    }

    public Emp(Integer eno, String ename, String esex, Double salary, Address addr) {
        this.eno = eno;
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.addr = addr;
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEsex() {
        return esex;
    }

    public void setEsex(String esex) {
        this.esex = esex;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Address getAddr() {
        return addr;
    }

    public void setAddr(Address addr) {
        this.addr = addr;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "eno=" + eno +
                ", ename='" + ename + '\'' +
                ", esex='" + esex + '\'' +
                ", salary=" + salary +
                ", addr=" + addr +
                '}';
    }
}
